package com.mes.biz.service.impl;

import java.util.List;
import org.springframework.stereotype.Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.github.pagehelper.PageInfo;
import com.mes.common.core.domain.BaseEntity;
import com.mes.common.core.service.BaseServiceImpl;
import com.mes.biz.mapper.BizOrderHandlerMapper;
import com.mes.biz.domain.BizOrderHandler;
import com.mes.biz.service.BizOrderHandlerService;
import org.springframework.transaction.annotation.Transactional;

/**
 * 销售单经办人员Service业务层处理
 * @author hwg
 * @email hwg
 * @date 2023-05-15
 */
@Service
@Transactional(readOnly = true)
public class BizOrderHandlerServiceImpl extends BaseServiceImpl<BizOrderHandlerMapper, BizOrderHandler> implements BizOrderHandlerService {

    private static final Logger log = LoggerFactory.getLogger(BizOrderHandlerServiceImpl.class);

    /**
     * 获取单条数据
     * @param bizOrderHandler 销售单经办人员
     * @return 销售单经办人员
     */
    @Override
    public BizOrderHandler get(BizOrderHandler bizOrderHandler) {
        BizOrderHandler dto = super.get(bizOrderHandler);
        return dto;
    }

    /**
     * 获取单条数据
     * @param id 销售单经办人员id
     * @return 销售单经办人员
     */
    @Override
    public BizOrderHandler get(String id) {
        BizOrderHandler dto = super.get(id);
        return dto;
    }

    /**
     * 查询销售单经办人员列表
     * @param bizOrderHandler 销售单经办人员
     * @return 销售单经办人员
     */
    @Override
    public List<BizOrderHandler> findList(BizOrderHandler bizOrderHandler) {
		List<BizOrderHandler> bizOrderHandlerList = super.findList(bizOrderHandler);
        return bizOrderHandlerList;
    }

    /**
     * 分页查询销售单经办人员列表
     * @param bizOrderHandler 销售单经办人员
     * @return 销售单经办人员
     */
    @Override
    public PageInfo<BizOrderHandler> findPage(BizOrderHandler bizOrderHandler) {
		PageInfo<BizOrderHandler> page = super.findPage(bizOrderHandler);
        return page;
    }

    /**
     * 保存销售单经办人员
     * @param bizOrderHandler
     * @return 结果
     */
    @Override
    public boolean save(BizOrderHandler bizOrderHandler) {
        return super.save(bizOrderHandler);
    }

    /**
     * 删除销售单经办人员信息
     * @param bizOrderHandler
     * @return 结果
     */
    @Override
    public boolean remove(BizOrderHandler bizOrderHandler) {
        return super.remove(bizOrderHandler);
    }

    /**
     * 批量删除销售单经办人员
     * @param ids 需要删除的销售单经办人员ID
     * @return 结果
     */
    @Transactional(readOnly = false)
    @Override
    public int deleteBizOrderHandlerByIds(String[] ids) {
        return mapper.deleteBizOrderHandlerByIds(ids, BaseEntity.DEL_FLAG_DELETE);
    }

}
